﻿using System;
using System.Runtime.Serialization;

namespace RockBus.DataContracts
{
    [DataContract(Namespace = StringConstants.RockBusNamespace)]
    public class CorrelationHeader
    {
        public const string HeaderName = "CorrelationHeader";

        public CorrelationHeader(Guid correlationId, Guid messageId)
        {
            this.CorrelationId = correlationId;
            this.MessageId = messageId;
        }

        [DataMember]
        public Guid CorrelationId { get; protected set; }

        [DataMember]
        public Guid MessageId { get; protected set; }
    }
}